# @Time  :2021/5/6 20:57
# @Author: Houtaroy
from flask import Blueprint
from flask_restx import Api

authorizations = {
    'Bearer Auth': {
        'type': 'oauth2',
        'tokenUrl': '/auth/login',
        'flow': 'password'
    }
}

blueprint = Blueprint('api', __name__, url_prefix='/api')

swagger = Api(
    blueprint,
    title='Swagger',
    version='1.0',
    description='Flask Koala Swagger',
    authorizations=authorizations,
    security='Bearer Auth',
    doc='/doc'
)
